<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<link href="images/skin.css" rel="stylesheet" type="text/css" />
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		<base href="<%=basePath%>">
		<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
 
.contentTable,.contentTable td,.contentTable th,  {   
    border:1px solid #cccccc;   
    border-collapse:collapse;  
}   

-->
</style>
<script type="text/javascript">
function check(theform){
	if (theform.type.value==-1)	{
	    alert("请选择产品类型");
	    theform.type.focus();
	    return (false);
	  }
	if (theform.name.value=='')	{
	    alert("不能为空，请输入！");
	    theform.name.focus();
	    return (false);
	  }
	  theform.submit();
	  return (true);   

}
function resetBtn(fm){
	　　 fm.reset();
	 　　return false;
	}
</script>
	</head>
	<body>
		<table width="100%" border="0" cellpadding="0" cellspacing="0" style="">
			<tr>
			    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
			    <td valign="top" background="images/content-bg.gif">
			    	<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
				      <tr>
				        <td height="31"><div class="titlebt">修改故障现象</div></td>
				      </tr>
			    	</table>
			    </td>
			    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
		  </tr>
		  
		  <tr >
			<td valign="middle" background="images/mail_leftbg.gif">
				&nbsp;
			</td>
			<td valign="top" bgcolor="#F7F8F9" align="center">
				<s:form method="post" action="Symptom!update.action"  id="editSymptomForm">
				<table width="50%" border="0" frame="box" cellspacing="0" style="margin-top:10px;" >
				  <tr>
				    <td width="50%" height="25px" class="table_content" align="right">产品类型：</td>
				    <td width="50%" height="25px" class="table_content" align="left" style="padding-left:5px;">
						<s:select 
						   name="symptom.type"
					       id="type"
					       headerKey="-1" headerValue="请选择"
					       listKey="name"
					       listValue="name"
					       list="allServiceType"
					       theme="simple"
					       required="true" 
					       cssStyle="width:80%"
					       value="%{symptom.type}"/>
					</td>
				  </tr>
				  <tr>
				    <td width="50%" height="25px" class="table_content" align="right">故障现象：</td>
				    <td width="50%" height="25px" class="table_content" align="left" style="padding-left:5px;"><s:textfield id="name" name="symptom.name" value="%{symptom.name}"/></td>
				  </tr>
				   <tr >
				    <td colspan="2" height="5" align="center">
						&nbsp;
					</td>				    
				  </tr>		
				   <tr>
				    <td colspan="2" width="50%" height="25px" class="table_content" align="center">
						<s:submit onclick="javascript:check(editSymptomForm);return false;"  value="保存"></s:submit>&nbsp;&nbsp;&nbsp;&nbsp;<s:reset  onclick = "javascript:resetBtn(editSymptomForm);return false; " value="重置"></s:reset>
					</td>				    
				  </tr>						 
				</table>
				<s:hidden name="symptom.id" value="%{symptom.id}"></s:hidden>
				</s:form>
			</td>
			<td background="images/mail_rightbg.gif">
				&nbsp;
			</td>
			</tr>
			<tr>
			    <td valign="bottom" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
			    <td background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17"></td>
			    <td valign="bottom" background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
		  	</tr>
		</table>
	</body>

</html>
